home *** CD-ROM | disk | FTP | other *** search
- ;------------------------------------ TestCase.SC
- ;--- Test SWITCH, CASE, OTHERWISE, and ENDSWITCH.
- CLEAR
- STYLE ATTRIBUTE 40
- @ 12,10
- ?? "Enter a number from 1 to 4, then press <-' : "
- ACCEPT "N" PICTURE "#" TO X
-
- ;-------------------- Respond to entry.
- @ 15,10
- STYLE REVERSE, BLINK
- SWITCH
- CASE X = 1 :
- ?? "You entered a one"
- CASE X = 2 :
- ?? "You entered a two"
- CASE X = 3 :
- ?? "You entered a three"
- CASE X = 4 :
- ?? "You entered a four"
- OTHERWISE :
- BEEP BEEP BEEP
- ?? "I said from 1 to 4!"
- ENDSWITCH
- SLEEP 4000
- STYLE
-